/*
 * @Date: 2023-08-01 13:41:38
 * @LastEditors: 景冰川 961166897@qq.com
 * @LastEditTime: 2023-08-10 10:51:32
 * @FilePath: \part-cloud-app\src\stores\account-store.ts
 */
import { defineStore } from 'pinia'

export const useAccountStore = defineStore('account', () => {
  const state = reactive({
    bottomLift: 0,
    top: 0,
  })

  const setBottomLift = (bottomLift: number) => {
    state.bottomLift = bottomLift
  }
  const setTop = (top: number) => {
    state.top = top
  }

  return {
    state,
    setBottomLift,
    setTop,
  }
}, {
  persist: {
    enabled: true,
  },
})
